package com.zhouheng.springbootdesignpattern.decoratorpattern;

/**
 * 具体的装饰类，给内部持有的具体被装饰对象，增加具体的职责
 *
 * @author 周恒
 * @date 20190614 11:01:48
 * @since v1.0
 */
public class ManDecoratorB extends DecoratorPerson {

    @Override
    public void eat() {
        before();
        super.eat();
        System.out.println("ManDecoratorB类");
    }

    public void before() {
        System.out.println("吃前洗手");
    }
    
}
